//
//  AccountBookHearderView.m
//  Daybook
//
//  Created by dllo on 16/5/24.
//  Copyright © 2016年 zhangbin. All rights reserved.
//

#import "AccountBookHearderView.h"
#import "Common.h"
@implementation AccountBookHearderView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createView];
    }
    return self;
}

- (void)createView {
    
    self.backgroundColor = [UIColor clearColor];
    
    self.lineView = [[UIView alloc]initWithFrame:CGRectMake(MAIN_WIDTH / 2, 0, 1, 20)];
    self.lineView.backgroundColor = [UIColor lightGrayColor];
    [self addSubview:self.lineView];
    
    self.pointImageView = [[UIImageView alloc]initWithFrame:CGRectMake(MAIN_WIDTH / 2 - 9, 0, 20, 20)];
    self.pointImageView.backgroundColor = [UIColor clearColor];
    [self addSubview:self.pointImageView];
    self.pointImageView.image = [UIImage imageNamed:@"pointImage"];
    
    
    self.dateLabel = [[UILabel alloc]initWithFrame:CGRectMake(MAIN_WIDTH / 2 - 110, 0, 100, 20)];
    self.dateLabel.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.dateLabel];
    self.dateLabel.font = [UIFont systemFontOfSize:12];
    self.dateLabel.textAlignment = 2;
    
    self.moneyLabel = [[UILabel alloc]initWithFrame:CGRectMake(MAIN_WIDTH / 2 + 10, 0, 100, 20)];
    self.moneyLabel.backgroundColor = [UIColor clearColor];
    [self addSubview:self.moneyLabel];
    self.moneyLabel.font = [UIFont systemFontOfSize:12];
    
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
